package myspring.event;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * <pre>
 *   Title: EventTest.java
 *   Description: 
 *   Copyright: yundaex.com Copyright (c) 2013
 *   Company: 上海韵达货运有限公司
 * </pre>
 * 
 * @author liuzhaoqing
 * @version 1.0
 * @date 2014年10月28日
 */
public class EventTest {

	public static void main(String[] args) {
		ApplicationContext cxt = null;
		cxt = new ClassPathXmlApplicationContext("spring-context.xml");
		EmailEvent vnt = new EmailEvent("hello", "lzqno186@qq.com", "this is test");
		cxt.publishEvent(vnt);
	}

}
